package script.functions

import com.tang.script.functions.ScriptFunction

@ScriptFunction(functionName = "转换成数字")
class ParseInt {
    Integer parseInt(String string) {
        try {
            int a = Integer.parseInt(string)
            return a
        } catch (Exception e) {
        } catch (ScriptException e) {
        }finally {
        }
        return 0
    }
}

return ParseInt;